package com.yq.admin.util;

import com.yq.admin.qo.ProductQueryVO;
import com.yq.api.qto.ProductQueryTO;
import org.springframework.beans.BeanUtils;

/**
 * Created by yq on 16-8-28.
 */
public class ProductQueryTOUtil {
    public static ProductQueryTO toProductQueryTO(ProductQueryVO productQueryVO) {
        if(productQueryVO == null){
            return null;
        }
        ProductQueryTO productQueryTO = new ProductQueryTO();
        BeanUtils.copyProperties(productQueryVO, productQueryTO);
        return productQueryTO;
    }
}
